package entity;

import cn.hutool.json.JSONObject;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 老化测试表
 */
@Data
@AllArgsConstructor
@Schema(description = "老化测试表")
@NoArgsConstructor
public class AgingTest implements Serializable {

    @Schema(description = "测试ID")
    private String testId;
//
    @Schema(description = "测试人员ID")
    private Integer engineerId;

    @Schema(description = "产品")
    private String productName;

    @Schema(description = "测试状态")
    private String testStatus;

    @Schema(description = "测试时长")
    private Integer duration;

    @Schema(description = "光衰曲线数据（JSON格式）")
    private String lightDecay;

    @Schema(description = "质检号（外键）")
    private Integer inspectionId;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime updateTime;

    @Schema(description = "电压")
    private Double voltage;

    @Schema(description = "温度")
    private Double temperature;

    @Schema(description = "光衰")
    private Double lumenDepreciation;

    @Schema(description = "备注")
    private String remarks;

    @Schema(description = "老化测试开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime startTime;
}
